package com.se.utils;

import javafx.stage.Stage;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class StageManager {
    private static final Map<String, Stage> stageMap = new ConcurrentHashMap<>();

    public static void add(String key, Stage stage) {
        stageMap.put(key, stage);
    }

    public static Stage get(String key) {
        return stageMap.get(key);
    }

    public static void remove(String key) {
        stageMap.remove(key);
    }

    private StageManager() {
    }
}

